export default {
  setLocalStore: (key: string, val: any) => {
    localStorage.setItem(key, JSON.stringify(val));
  },
  getLocalStore: (key: string): any => {
    const val = localStorage.getItem(key);
    return val ? JSON.parse(val) : null;
  },
  removeLocalStore: (key: string) => {
    localStorage.removeItem(key);
  },
};
